package com.example.springbootsenior.ConfigurationProperties.controller;

import com.example.springbootsenior.ConfigurationProperties.bean.SysRouteList;
import com.example.springbootsenior.ConfigurationProperties.component.UserInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @classDesc: 功能描述:
 * @author: 李明杰
 * @date: 2021/11/18 8:40
 * @copyright
 */
@RestController
public class ConfigurationPropertiesController {
    @Resource
    private SysRouteList sysRouteList;
    @Resource
    private UserInfo userInfo;

    @GetMapping("/ConfigureBinding2")
    public Object config2() {
        return userInfo;
    }

    @GetMapping("/ConfigureBinding1")
    public Object config() {
        return sysRouteList;
    }
}
